#!/bin/sh

#Test if the number of input arguments is correct
ARGS=1
E_BADARGS=99;
if [ $# -ne "$ARGS" ]
then
  echo "Usage: see twitter_makering.sh"
  exit $E_BADARGS
fi

file=`basename $0`

#user given in name:password and friend given in name
while read -r user friend
    do curl -u $user http://twitter.com/friendships/create/$friend.xml >> $file.log
done < $1
